Extension Script for Each Graphic Element

 

The object properties dialog box for most graphic elements has an extensions tab, from which you can write scripts.

After the certain graphic object is selected, when 'Edit|Object Properties' or 'Object Properties' of shortcut is selected or the object is double-dlicked, the object properties dialog box appears, where user can set the extension script as shown in <Figure 1> if user selects the 'Extension' tab.

 

<Figure 1> Example of selecting the Extension tab for element properties (for rectangular graphic object)

 

If the area of <Figure 1> is checked (V), the available extension elements for each graphic object are activated.

Active Horizontal, Vertical, X, Y, ¡¦, etc. after checking (V) in front of the extension element, run the script editor by selecting the extension element as follows.

Width : Press the button to handle the width.

Height : Press the button to handle the height.

X : Press the button to handle the position of X.

Y : Press the button to handle the position of Y.

Key Down : Press the button to run script of when the key is pressed.

Sel Change : Press the button to run script of when select position of list, etc. is changed.

On Down : Press the button to run script of when left button of mouse is pressed.

On Up : Press the button to run script of when left button of mouse is released.

Zone display : Press the button to handle the displayed zone of when mouse is on

On Right Down : Press the button to run script of when right button of mouse is pressed.

On Right Up : Press the button to run script of when right button of mouse is released.

Visible : Press the button to handle the display.

Blinking : Press the button to handle script that can blink

Rotate : Press the button to handle script thta can rotate.

Speed : Press the button  to handle the speed of animation.

Line : Press the button to handle the thickness of line.

Horizontal : Press the button to set move X ratio.

Vertical : Press the button to set move Y ratio.

Line color : Press the button to handle line color.

Fill color : Press the button to handle fill color.

Text color : Press the button to handle text color.

Back color : Press the button to handle background color.

 

Reference) When each script editor in an extension object is executed to write a script, it automatically enters a check (V) state in front of the extension element.

 

User can also use the script when you select the mouse response as 'Run file script' or 'Run include script' on The MouseResponse tab of analog/digital related graphic elements.

 

<Figure 2> is an example of the MouseResponse tab of the object properties dialog box (when selecting to 'Run file script')

 

<Figure 2> Example of selecting a MouseResponse in the objecct properties dialog box

 

Write and use a script when you select the following two types from the MouseResponse tab.

Run file script : Write a script in the Script Editor that appears when you input a script name in the editor and then press a button.

Run include script : Wite a script in the script editor that appears when you press the button.

 

Related Helps)

MouseResponse tab

Script type

Script execute

Script help